export const HOLD_LIST_KEY = 'HOLD_LIST_KEY'
export const EXCHANGE_LIST_KEY = 'EXCHANGE_LIST_KEY'
export const HOLD_HISTORY_KEY = 'HOLD_HISTORY_KEY'

export interface ExchangeItem {
  id: string
  type?: 'sell' | 'buy'  // 交易方向
  count?: number // 数量
  price?: number // 单价
  createTime?: string
}


export type HoldType = 'fund-out' | "fund-in" | "convertibleBonds" | "stock" | 'currency'

export const TYPE_LIST = [
  {
    label: '基金-场外',
    value: 'fund-out'
  },
  {
    label: '基金-场内',
    value: 'fund-in'
  },
  {
    label: '可转债',
    value: 'convertibleBonds'
  },
  {
    label: '货币-手动更新',
    value: 'currency'
  },
  {
    label: '股票',
    value: 'stock'
  },
]

export const EXCHANGE_TYPE_LIST = [
  {
    label: '买入',
    value: 'buy'
  },
  {
    label: '卖出',
    value: 'sell'
  }
]
